<template>
  <div>
    <div class="page-title" :class="{ 'border-bottom': hasLine }">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
  defineProps({
    hasLine: {
      type: Boolean,
      default: true,
    },
  });
</script>

<style lang="less" scoped>
  .page-title {
    font-weight: 600;
    font-size: 16px;
    color: #1e2228;
    line-height: 32px;
    padding-bottom: 4px;
    font-style: normal;
    text-transform: none;
  }

  .border-bottom {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e7ed;
  }
</style>
